//
//  UITabBar+Action.m
//  ocCrazy
//
//  Created by mac on 2018/6/21.
//  Copyright © 2018年 dukai. All rights reserved.
//

#import "UITabBar+Action.h"

#import <objc/runtime.h>

@implementation UITabBar (Action)
//+ (void)load{
//    [super load];
//    Method method1 = class_getInstanceMethod([self class], @selector(hitTest:withEvent:));
//    Method method2 = class_getInstanceMethod([self class], @selector(adapterHitTest:withEvent:));
//
//    method_exchangeImplementations(method1, method2);
//}
//
//-(UIView *)adapterHitTest:(CGPoint)point withEvent:(UIEvent *)event
//
//{
//
//    UIView *view = [self adapterHitTest:point withEvent:event];
//
//    if (view == nil) {
//
//        for (UIView *subView in self.subviews) {
//
//            CGPoint myPoint = [subView convertPoint:point fromView:self];
//
//            if (CGRectContainsPoint(subView.bounds, myPoint)) {
//
//                return subView;
//            }
//
//        }
//
//    }
//
//    return view;
//
//}

@end
